package cn.zn.framework.common.abs;

import cn.zn.framework.security.inter.service.MySecurityService;
import cn.zn.framework.security.inter.vo.LoginUserVO;
import org.springframework.beans.factory.annotation.Autowired;

public abstract class AbstractController {

    @Autowired(required = false)
    MySecurityService mySecurityService;

    protected LoginUserVO loginUser() {
        return mySecurityService != null ? mySecurityService.loginUser() : null;
    }

}
